
use data2014,clear

**Table A.11 - Panel B  **cohorts of 46-49 as treated group and 1950-1961 as control group*************
	****dummy*******

		**female***

		foreach var of varlist  diploma1 diploma2  educationyrs {
		eststo: xi: quietly ivreg2 `var' d_interact4 vietminh birthyear_treated4 ethnicity_head i.birthyear birthprovince2-birthprovince45 if t4==1&north_birth==1&sex==0,cluster(birthprovince commune) small
		}
		esttab using "$directory\outcome1.rtf", compress b(3) keep(d_interact4) se(3)   star(* 0.10 ** 0.05 *** 0.01)  nogaps parentheses  replace   ar2
		eststo clear

	****years of occupation ***
		
		**female***

		foreach var of varlist  diploma1 diploma2  educationyrs {
		eststo: xi: quietly ivreg2 `var' yr_exposed ethnicity_head i.birthyear birthprovince2-birthprovince45 if $by2461 &north_birth==1&sex==0,cluster(birthprovince commune) small
		}
		esttab using "$directory\outcome1.rtf", compress b(3) keep(yr_exposed) se(3)   star(* 0.10 ** 0.05 *** 0.01)  nogaps parentheses  append   ar2
		eststo clear

